package com.h.heal.service;

import com.h.heal.common.MyPageInfo;
import com.h.heal.entity.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

public interface UserService {
    String login(User user, HttpSession httpSession);

    String register(User user);

    List<User> findAll();

    User findById(int id);

    List<User> findByUser_name(String user_name);

    List<User> findByUser_pwd(String user_pwd);

    List<User> findByUser_vip(String user_vip);

    List<User> findByUser_state(String user_state);

    void deleteByUser_uid(int id);

    String edit(User user);

    MyPageInfo findBySearch(HttpServletRequest request);

}
